import {Vec3} from "./Vec3";
class Plane{
    constructor(normal=[0,0,1],constant=1){
        this.normal=new Vec3(normal);
        this.constant=constant;
    }
    set( x, y, z, w ) {
		this.normal.copy( [x, y, z] );
		this.constant = w;
		return this;
	}
    normalize() {
		const inverseNormalLength = 1.0 / this.normal.length();
		this.normal.multiply( inverseNormalLength );
		this.constant *= inverseNormalLength;
		return this;
	}
}
export {Plane}